﻿package com.jxl.dnd.races
{
	import jxl.dnd.races.RacialAbility
	
	public class Gnome extends Race
	{
	
		public var className:String = "Gnome";
		
		public function Gnome():void
		{
			super();
			
			if(intelligence < 10){
				bonusSpells = [];
			}
			
			size = "small";
			acBonus = 1;
			attackBonus = 1;
			hideBonus = 4;
			speed = 20; // feet
			racialAbilities_array;
			extraFeat = 0;
			extraSkillPoints = 0;
			extraSkillPointsPerLevel = 0;
			bonusProficienciesAmount = 1;
			bonusProficienciesChoices_array = [];
			bonusProficiencies_array = [];
			bonusLanguagesAmount = 0;
			bonusLanguages_array = ["GnomeClass"];
			bonusLanguagesChoices_array = ["Draconic", "Dwarven", "Elven", "Giant", "Goblin", "Orc"];
			favoredClass = "Illusionist";
			languages_array = ["Common"];
			literacy = true;
			constitutionBonus = 2;
			stengthBonus = -2;
			spellLikeAbilities_array = ["speak with animals"];
			bonusSpells = ["dancing lights", "ghost sound", "prestidigitation"];
			
			racialAbilities_array = [new RacialAbility("Low-light Vision",
													   "Low-light Vision",
													   2),
									 new RacialAbility("Illusiions Resistance",
													   "Illusiions Resistance",
													   2,
													   0,
													   null,
													   "illusions"),
									 new RacialAbility("attack bonus",
													   "attack bonus",
													   1,
													   0,
													   ["kobolds", "goblins", 
														"hobgoblins", "bugbears"]),
									 new RacialAbility("dodge vs giants",
													   "dodge vs giants",
													   4),
									 new RacialAbility("listen",
													   "listen",
													   2),
									 new RacialAbility("listen",
													   "listen",
													   2),
									 new RacialAbility("alchemy",
													   "alchemy",
													   2)];
		}
	}
	
	
}
